﻿<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="WFrm_Crear_Modificar_Pregunta.aspx.vb" Inherits="WebAppTestBuilder.WFrm_Crear_Modificar_Pregunta" %>
<%@ Register assembly="Anthem" namespace="Anthem" tagprefix="anthem" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title></title>
      <link href="../Css/style.css" rel="stylesheet" type="text/css" />
    <script src="../Js/JQuery-1.6.1.js" type="text/javascript"></script>
    <script src="../Js/jquery.corners.js" type="text/javascript"></script>
 

    <script src="../Js/jquery.ui.mouse.js" type="text/javascript"></script>
    <script src="../Js/jquery.ui.draggable.js" type="text/javascript"></script>
    <script src="../Js/jquery.ui.core.js" type="text/javascript"></script>

    <script src="../Js/jquery.alerts.js" type="text/javascript"></script>
    <link href="../Css/jquery.alerts.css" rel="stylesheet" type="text/css" />
    
    <script type="text/javascript">

      $(document).ready(function() {
          $('.rounded').corners();
      });

     
    </script>
    
    <style type="text/css">
        #File1
        {
            width: 252px;
        }
        #File2
        {
            width: 432px;
        }
        #File2
        {
            width: 248px;
        }
    </style>
    
</head>
<body contextmenu = 'return false'>
    <form id="form1" runat="server">
      <div style="text-align: left">
          <table width="100%">
            <tr align="center" >
                <td>
                    <table>
                        <tr>
                            <td>
                                <table style="width: 100%">
                                    <tr align="center" >
                                        <td id="td_Paso1"   align="center"  class ="Panel01  rounded">
                                            <b>
                                           <anthem:Label ID="lbl_paso1" Text="Paso 1: Crear Prueba" runat="server" 
                                                Font-Bold="true" ForeColor="#333333"></anthem:Label>
                                            </b></td>
                                        <td id="Td_paso2"    class ="Panel01  rounded">
                                            <anthem:Label ID="lbl_paso2" runat="server" style="font-weight: 700"  
                                                ForeColor="#333333">Paso 2: Secciones</anthem:Label>
                                        </td>
                                        <td id="Td_Paso3"  class ="Panel01  rounded">
                                            <b><anthem:Label ID="lbl_paso3" runat="server" ForeColor="Blue">Paso 3: Preguntas</anthem:Label></b></td>
                                        <td id="Td_Paso5"     class ="Panel01  rounded">
                                            <b><anthem:Label ID="lbl_paso4" runat="server" ForeColor="#333333"><b>Paso 4: 
                                                Visualización</b></anthem:Label></b></td>
                                    </tr>
                                </table>
                            </td>
                        </tr>                       
                        <tr>
                            <td>
                                <div class="Panel01  rounded">
                                   <table  >
                                        <tr>
                                              <td align="center" bgcolor="#003366" colspan="2" 
                                                style="font-weight: 700; text-align: center; color: #FFFFFF">
                                                  Paso 3: Preguntas</td>
                                        </tr>
                                        <tr>
                                            <td align="left"  >
                                                <anthem:Label ID="Label30" runat="server" Text="Prueba"></anthem:Label>
                                            </td>
                                            <td align="left">
                                                <anthem:Label ID="lbl_prueba" runat="server" Text="..."></anthem:Label>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="left"  >
                                                <anthem:Label ID="Label9" runat="server" Text="Sección"></anthem:Label>
                                            </td>
                                            <td align="left">
                                                <anthem:DropDownList ID="cmb_seccion_pregunta" runat="server" Height="32px" 
                                                    Width="78px" SkinID="K_SECCION" AutoCallBack="True" 
                                                    EnabledDuringCallBack="False">
                                                </anthem:DropDownList>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="left"  >
                                                <anthem:Label ID="Label10" runat="server" Text="Tipo Pregunta"></anthem:Label>
                                            </td>
                                            <td>
                                                <anthem:DropDownList ID="CMB_K_TIPO_PREGUNTA" runat="server" Height="32px" 
                                                    Width="602px" SkinID="K_TIPO_PREGUNTA">
                                                </anthem:DropDownList>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="left">
                                                <anthem:Label ID="Label27" runat="server" Text="Imagen"></anthem:Label>
                                            </td>
                                            <td align="left">
                                                &nbsp;<table style="width: 100%">
                                                    <tr>
                                                        <td style="width: 438px">
                                                            <anthem:FileUpload ID="FileUpload1" runat="server"  />
                                                        
                                                        </td>
                                                        <td align="center">
                                                 
                                                      
                                                            &nbsp;</td>
                                                    </tr>
                                                </table>
                                                        
                                                </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <anthem:Label ID="Label28" runat="server" Text="Puntos Pregunta"></anthem:Label>
                                            </td>
                                            <td align="left">
                                                <anthem:DropDownList ID="cmb_puntos_pregunta" runat="server" Height="32px" 
                                                    SkinID="I_PUNTOS" Width="78px">
                                                </anthem:DropDownList>
                                                 
                                                <anthem:Label ID="lbl_id_pregunta" runat="server" Text="0"></anthem:Label>
                                                 
                                                <br />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="left" valign="top">
                                                <anthem:Label ID="Label29" runat="server" Text="Pregunta"></anthem:Label>
                                            </td>
                                            <td align="left" valign="top">
                                                <anthem:TextBox ID="txt_Observacion_prueba1" runat="server" 
                                                    EnableCallBack="False" Height="153px" Width="601px" Rows="15" 
                                                    TextMode="MultiLine" MaxLength="500"></anthem:TextBox>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td colspan="2" align="center">
                                                <div class="Boton01 rounded" style="width: 208px;">
                                                    <asp:Button ID="Btn_Agregar_Pregunta" runat="server" 
                                                         CssClass ="Boton01" Font-Bold="True" Font-Size="9pt" Text="Grabar Pregunta" 
                                                        CausesValidation="False" />
                                                </div>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td colspan="2" align="center">
                                                    <anthem:DataGrid ID="Grid_Preguntas" runat="server" BorderColor="#999999" 
                                                                            BorderStyle="Solid" BorderWidth="1px" Width="589px" 
                                                                AutoGenerateColumns="False" Font-Bold="False" Font-Italic="False" 
                                                                Font-Overline="False" Font-Size="9pt" Font-Strikeout="False" 
                                                                Font-Underline="False" Height="114px">
                                                                <ItemStyle  ForeColor="#000066" BackColor="White" Font-Bold="False" 
                                                                    Font-Italic="False" Font-Overline="False" Font-Strikeout="False" 
                                                                    Font-Underline="False" />
                                                                <FooterStyle BackColor="White" ForeColor="#000066" />
                                                                <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" />
                                                                <SelectedItemStyle  BackColor="#000066" Font-Bold="True" ForeColor="White" 
                                                                    Font-Italic="False" Font-Overline="False" Font-Strikeout="False" 
                                                                    Font-Underline="False" />
                                                        <Columns>
                                                            <asp:BoundColumn DataField="P_PREGUNTA" HeaderText="P_PREGUNTA" Visible="False">
                                                            </asp:BoundColumn>
                                                            <asp:TemplateColumn>
                                                                <ItemTemplate>
                                                                    <anthem:LinkButton ID="lnk_editar" runat="server" EnabledDuringCallBack="False" 
                                                                        Font-Underline="True" onclick="lnk_editar_Click">Editar</anthem:LinkButton>
                                                                </ItemTemplate>
                                                                <HeaderStyle Width="30px" />
                                                            </asp:TemplateColumn>
                                                            <asp:TemplateColumn>
                                                                <ItemTemplate>
                                                                    <anthem:LinkButton ID="lnk_alternativas" runat="server" 
                                                                        EnabledDuringCallBack="False" Font-Underline="True" onclick="lnk_editar_Click">Alternativas</anthem:LinkButton>
                                                                </ItemTemplate>
                                                                <HeaderStyle Width="60px" />
                                                            </asp:TemplateColumn>
                                                            <asp:BoundColumn DataField="I_NRO_SECCION" HeaderText="N° Sección">
                                                                <HeaderStyle Font-Bold="True" Font-Italic="False" Font-Overline="False" 
                                                                    Font-Strikeout="False" Font-Underline="False" ForeColor="White" Width="50px" />
                                                            </asp:BoundColumn>
                                                            <asp:BoundColumn DataField="I_NRO_PREGUNTA" HeaderText="N° Pregunta">
                                                                <HeaderStyle Font-Bold="True" Font-Italic="False" Font-Overline="False" 
                                                                    Font-Strikeout="False" Font-Underline="False" ForeColor="White" Width="50px" />
                                                            </asp:BoundColumn>
                                                            <asp:BoundColumn DataField="S_DESCRIPCION_PREGUNTA" 
                                                                HeaderText="Texto Pregunta ">
                                                                <HeaderStyle Font-Bold="True" Font-Italic="False" Font-Overline="False" 
                                                                    Font-Strikeout="False" Font-Underline="False" ForeColor="White" 
                                                                    HorizontalAlign="Center" Width="100px" />
                                                            </asp:BoundColumn>
                                                            <asp:BoundColumn DataField="I_PUNTOS_PREGUNTA" HeaderText="Ptos.">
                                                                <HeaderStyle Font-Bold="True" Font-Italic="False" Font-Overline="False" 
                                                                    Font-Strikeout="False" Font-Underline="False" ForeColor="White" 
                                                                    HorizontalAlign="Center" Width="50px" />
                                                            </asp:BoundColumn>
                                                            <asp:BoundColumn DataField="K_TIPO_PREGUNTA" HeaderText="K_TIPO_PREGUNTA" 
                                                                Visible="False">
                                                            </asp:BoundColumn>
                                                            <asp:TemplateColumn>
                                                                <ItemTemplate>
                                                                    <anthem:ImageButton ID="img_eliminar" runat="server" 
                                                                        EnabledDuringCallBack="False" ImageUrl="~/images/cerrar_rojo.jpg" 
                                                                        onclick="img_eliminar_Click" />
                                                                </ItemTemplate>
                                                                <HeaderStyle Width="50px" />
                                                            </asp:TemplateColumn>
                                                        </Columns>
                                                        <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" Font-Size="9pt" 
                                                            ForeColor="White" />
                                                        <EditItemStyle BackColor="#999999" />
                                                        <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                                                        <SelectedItemStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                                                        <AlternatingItemStyle BackColor="White" ForeColor="#284775" />
                                                    </anthem:DataGrid>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td colspan="2">
                                                </td>
                                        </tr>
                                        <tr>
                                            <td colspan="2" style="text-align: center" align="left">
                                                <table style="width: 100%">
                                                    <tr>
                                                        <td>
                                                        <div class="Boton01 rounded" style="width: 208px;">
                                                <anthem:Button ID="Btn_volver_preguntas" runat="server"  
                                                     CssClass ="Boton01" Text="&lt;&lt; Volver"  Font-Bold="true"
                                                    Width="204px" CausesValidation="False" />
                                                    </div>
                                                
                                                        </td>
                                                        <td>
                                                    <div class="Boton01 rounded" style="width: 208px;">
                                                        <anthem:Button ID="Btn_Finalizar" runat="server"  Font-Bold="true" 
                                                         CssClass ="Boton01"  Text="Continuar &gt;&gt;" 
                                                        Width="204px" CausesValidation="False" />
                                                    </div>
                                                    
                                                        </td>
                                                    </tr>
                                                </table>
                                            </td>
                                        </tr>
                                    </table>
                                </div>    
                                    
                            </td>
                        </tr>                       
                    </table>
                </td>
            </tr>
        </table>
    
    </div>
    </form>
</body>
</html>
